package com.naja.event.tracking.extract.feign;

import com.naja.core.dto.Response;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 消费端，gps调用外部
 *
 * @author shenhongjun
 * @since 2020/4/21
 */
//@FeignClient(value = "naja-demo-service", contextId = "naja-demo-service")
public interface DemoFeignClient {

    /**
     * 调用demo外部服务
     * @param id 主键
     * @return 返回Response<String>类型
     */
    @GetMapping(value = "domainname/v1/gps")
    Response<String> getGpsById(@RequestParam("id") int id);
}
